<?php

// mbilling/BillingBundle/Entity/domainsZonesGateways.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class domainsZonesGateways
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $name;
    
    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $url;
    
    /**
     * @ORM\Column(type="string", length=15)
     */
    protected $login;
    
    /**
     * @ORM\Column(type="string", length=15)
     */
    protected $password;

    /**
     * @ORM\Column(type="string", length=100)
     * @assert\NotBlank
     */
    protected $file;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setUrl($url)
    {
        $this->url = $url;
    }
    public function getUrl()
    {
        return $this->url;
    }

    public function setLogin($login)
    {
        $this->login = $login;
    }
    public function getLogin()
    {
        return $this->login;
    }

    public function setPassword($password)
    {
        $this->password = $password;
    }
    public function getPassword()
    {
        return $this->password;
    }

    public function setFile($file)
    {
        $this->file = $file;
    }
    public function getFile()
    {
        return $this->file;
    }
    
    public function initDefaultEntity()
    {
        $this->setName('new');
        $this->setUrl('server.ru');
        $this->setLogin('');
        $this->setPassword('');
        $this->setFile('/var/www/sandbox/test.txt');
        return $this;
    }
}
?>
